class CreateCartProduces < ActiveRecord::Migration
  def change
    create_table :cart_produces do |t|
      t.references :cart
      t.references :produce
      t.date "time_new"
      t.timestamps
    end

    add_index :cart_produces, ['cart_id', 'produce_id']
  end
end
